import { enableProdMode, importProvidersFrom } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import { RouteReuseStrategy, provideRouter } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';

import { routes } from './app/app.routes';
import { AppComponent } from './app/app.component';
import { environment } from './environments/environment';
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';
import { EmailComposer } from '@ionic-native/email-composer/ngx';
import {Media, MediaObject} from '@ionic-native/media/ngx';
import {MediaCapture, MediaFile} from '@ionic-native/media-capture/ngx';
import { DeviceOrientation } from '@ionic-native/device-orientation/ngx';
import { OCR, OCRSourceType,OCRResult } from '@ionic-native/ocr/ngx';
import { TextToSpeech } from '@ionic-native/text-to-speech/ngx'; 


if (environment.production) {
  enableProdMode();
}

bootstrapApplication(AppComponent, {
  providers: [
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    importProvidersFrom(IonicModule.forRoot({})),
    provideRouter(routes),
    BarcodeScanner,
    EmailComposer,
    Media,
    MediaCapture,
    DeviceOrientation,
    OCR,
    TextToSpeech
  ],
});
